package com.ebupt.migu.fineoperationactivitymonitor.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by Intellij IDEA. User: liuyangyang@cd.ebupt.com Date: 2019/10/18
 */
@Getter
@Setter
public class MiguRuntimeException extends RuntimeException {
    private Integer code;
    private String message;

    public MiguRuntimeException(String message) {
        super(message);
        this.message = message;
    }

    public MiguRuntimeException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public MiguRuntimeException(String message, Throwable throwable) {
        super(message, throwable);
        this.message = message;
    }

    public MiguRuntimeException(Integer code, String message, Throwable throwable) {
        super(message, throwable);
        this.code = code;
        this.message = message;
    }
}
